{%extends "base.html"%}
{%block body%}
<h2>Fill in your information for "{{club.name|escape}}, {{club.location|escape}}, {{club.website|escape}}"</h2>

<div class="warn">
{{msg|escape}}
</div>

<form action="{%url views.clubentry club.key.id%}" method="post">
<!-- 
<table>
    {{form}}
</table>
-->

(* - Required)<br/>
<table class="sample">
{% for field in form %}

<tr class="d0">
    <td><b><center>{{ field.label_tag }} 
		{% if field.field.required %}*{% endif %}
    </center></b>
    <br/><center>{{ field.errors }}</center>
</td>
<td> 
    {{ field }} {{ field.help_text }}
    {% ifequal  forloop.counter 1 %}
    <br/>
    <div class="warn">You must select one of the choices in the dropdown box above.</div>
    <br/>
    Prices: <br/>
${{club.one_year_individual_member_price|floatformat:2}} - One year individual member price<br/>
${{club.one_year_household_member_price|floatformat:2}} - One year household member price<br/>
${{club.five_year_individual_member_price|floatformat:2}} - Five year individual member price<br/>
${{club.five_year_household_member_price|floatformat:2}} - Five year household member price<br/>
{{club.advertisement|escape}}<br/>
    {% endifequal %}
</td>
</tr>
<!-- <tr><td colspan="100%"><hr/></td></tr> -->

{% endfor %}
</table>
<hr/>
<!--
<table>
<tr><td>
	<textarea cols="45" rows="10" wrap="virtual" readonly="readonly">By indicating your acceptance, you understand, agree, warrant and covenant as follows:
    
	    WAIVER: I know that running a road race is potentially hazardous activity. I should not enter and run unless I am medically able and properly trained. I also know that, although police protection will be provided, there will be traffic on the course route. I assume the risk of running in traffic. I also assume any and all other risks associated with running this event including but not limited to falls, contact with other participants, the effects of weather, including high heat and/or humidity, and the condition of the roads, all such risks being known and appreciated by me. Knowing these facts and in consideration of your accepting my entry fee, I hereby, for myself, my heirs, executors, administrators or anyone else who might claim on my behalf, covenant not to sue, and waive, release, and discharge the Towns of XXX, The XXX Inc., Race Officials, Volunteers, any and all sponsors including their agents, employees, assigns or anyone acting on their behalf, from any and all claims or liability for death, personal injury or property damage of any kind or nature whatsoever arising out of, or in the course of, my participation in this event. This Release and Waiver extends to all claims of every kind or nature whatsoever, foreseen and unforeseen, known and unknown. The undersigned further grants full permission to XXX Inc. and/or agents authorized by them, to use any photographs, videotapes, motion pictures, recording, or any other record of this event for any purpose. Application for minors under 18 will be accepted only with a parent's signature. 
	    REGISTRATION AGREEMENT AND LIABILITY WAIVER (the "Agreement and Waiver")
    
	    1. Authority to Register and/or to Act as Agent. You represent and warrant to YYY Inc. that you have full legal authority to complete this event registration on behalf of yourself and/or any party you are registering (the "Registered Parties"), including full authority to make use of the credit or debit card to which registration fees will be charged.  As used in this Agreement and Waiver, YYY refers to YYY, Inc. and any and all subsidiaries, affiliated entities, or entities that control or are controlled by YYY singly or together and its officers, employees, contractors, subcontractors and agents. 
    
	    If you are registering a child under the age of 18 or an incapacitated adult you represent and warrant that you are the parent or legal guardian of that party and have the legal authority to enter into this agreement on their behalf and by proceeding with this event registration, you agree that the terms of this Agreement and Waiver shall apply equally to all Registered Parties. By registering a child under 13, you agree and consent to the collection of that child's information which you provide for the purposes of registration.
    
	    2.  Waiver.
	    YOU UNDERSTAND THAT PARTICIPATION IN THE EVENT IS POTENTIALLY HAZARDOUS, AND THAT A REGISTERED PARTY SHOULD NOT PARTICIPATE UNLESS THEY ARE MEDICALLY ABLE AND PROPERLY TRAINED.  YOU UNDERSTAND THAT EVENTS MAY BE HELD OVER PUBLIC ROADS AND FACILITES OPEN TO THE PUBLIC DURING THE EVENT AND UPON WHICH HAZARDS ARE TO BE EXPECTED.  PARTICIPATION CARRIES WITH IT CERTAIN INHERENT RISKS THAT CANNOT BE ELIMINATED COMPLETELY RANGING FROM MINOR INJURIES TO CATASTROPHIC INJURIES INCLUDING DEATH.   YOU UNDERSTAND AND AGREE THAT IN CONSIDERATION OF BEING PERMITTED TO PARTICIPATE IN THE EVENT, YOU AND ANY REGISTERED PARTY, THE HEIRS, PERSONAL REPRESENTATIVES OR ASSIGNS OF YOU OR THE REGISTERED PARTY DO HEREBY RELEASE, WAIVE, DISCHARGE AND CONVENANT NOT TO SUE YYY FOR ANY AND ALL LIABILITY FROM ANY AND ALL CLAIMS ARISING FROM PARTICIPATION IN THE EVENT BY YOU OR ANY REGISTERED PARTY.  
    
	    3. Limitation of Liability; Disclaimer of Warranties. 
	    YYY SHALL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES, RESULTING FROM (A) THE USE OR THE INABILITY TO USE YYY OR (B) FOR THE COST OF PROCUREMENT OF SUBSTITUTE GOODS AND SERVICES OR (C) RESULTING FROM ANY GOODS OR SERVICES PURCHASED OR OBTAINED OR TRANSACTIONS ENTERED INTO THROUGH YYY OR (D) RESULTING FROM UNAUTHORIZED ACCESS TO OR ALTERATION OF YOUR TRANSMISSIONS OR DATA, INCLUDING BUT NOT LIMITED TO, DAMAGES FOR LOSS OF PROFITS, USE, DATA OR OTHER INTANGIBLE, EVEN IF YYY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. YOU EXPRESSLY AGREE THAT USE OF YYY IS AT YOUR SOLE RISK. YYY IS PROVIDED ON AN "AS IS" AND "AS AVAILABLE" BASIS. YYY EXPRESSLY DISCLAIMS ALL WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.
    
	    YYY makes no warranty that the YYY sites' services will be uninterrupted, secure or error free. YYY does not guarantee the accuracy or completeness of any information in, or provided in connection with, the YYY sites. YYY is not responsible for any errors or omissions, or for the results obtained from the use of such information. You understand and agree that any material and/or data downloaded or otherwise obtained through the use of the YYY sites is at your own discretion and risk and that you will be solely responsible for any damage to your own computer system or loss of data that results from the download of such material and/or data.
    
	    4. Indemnification. You agree to indemnify and hold each of YYY harmless from and against any and all damages, costs, claims or demands, including reasonable attorneys' fees, made by any third party due to or arising from or relating to your use of YYY or the violation of any term of this Agreement and Waiver as well as the Terms of Service located at:  http://www.yyy.com/terms-of-use.htm by you.
    
	    5. Applicable Law; Consent to Jurisdiction. The YYY sites (excluding linked sites) are controlled by YYY from its offices within the State of California, United States of America. By completing this event registration, both you and YYY agree that the statutes and laws of the State of California, without regard to the conflict of laws principles thereof, will apply to all matters relating to this event registration, this Agreement and Waiver, the Terms of Use or other use of the YYY sites. You agree that exclusive jurisdiction for any dispute with YYY resides in the courts of the State of California and you further agree and expressly consent to the exercise of personal jurisdiction in the courts of the State of California in connection with any dispute including any claim involving YYY or its affiliates, subsidiaries, employees, contractors, officers, directors, telecommunication providers and content providers.
    
	    6. Severability. You further expressly agree that this Agreement and Waiver is intended to be as broad and inclusive as is permitted by the law of the State of California and that if any provision of this Agreement and Waiver shall be found to be unlawful, void, or for any reason unenforceable, then that provision shall be deemed severable from this Agreement and Waiver and shall not affect the validity and enforceability of any remaining provisions.
    
	    BY INDICATING YOUR ACCEPTANCE OF THIS AGREEEMENT AND WAIVER, YOU ARE AFFIRMING THAT YOU HAVE READ AND UNDERSTAND THIS AGREEMENT AND WAIVER AND FULLY UNDERSTAND ITS TERMS.  YOU UNDERSTAND THAT YOU ARE GIVING UP SUBSTANTIAL RIGHTS, INCLUDING THE RIGHT TO SUE.  YOU ACKNOWLEDGE THAT YOU ARE SIGNING THE AGREEMENT AND WAIVER FREELY AND VOLUNTARILY, AND INTEND BY YOUR ACCEPTANCE TO BE A COMPLETE AND UNCONDITIONAL RELEASE OF ALL LIABILITY TO THE GREATEST EXTENT ALLOWED BY LAW.</textarea></td></tr>
-->
<!-- 

<tr><td><i class="waiverCheckBoxText">I agree to the above waiver</i></td></tr>
    		
			<tr><td><input name="agree1" value="yes" checked="checked" type="checkbox"></td> </tr>
			<tr> <td> <font class="largeWarning"> Initials of athlete over 18 years of age<br>or parent/legal guardian of minor under 18 years of age <br>or legal guardian of incapacitated and/or mentally challenged person.  </font></td></tr>
			<tr> <td class="body10pt"><i>Initials:</i></td></tr>
			<tr><td><input name="parentalInitials" value="" maxlength="3" size="2" type="text"></td> </tr>

-->


<!-- <tr><td><input type="submit" value="Accept all waivers and Continue to payment page"></td></tr> -->
<tr><td><input type="submit" value="Continue to payment page"></td></tr>
<input type="hidden" name="clubid" value="{{club.key.id}}">
</table>
</form>


<!--
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="info@brooklynmarathon.com">
<input type="hidden" name="no_shipping" value="1">

<table>
<tr> <td align="left"><b>Pay via Pay Pal
for the event:</b><br/>
<br/>
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but23.gif" 
      name="submit" alt="Make payments with payPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="item_name" value="2009 Boston Marathon">2009 Boston Marathon
<input type="hidden" name="amount" value="20.00">
</tr>
</table>

<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="bn" value="IC_Sample">
</form>

<form action="https://checkout.google.com/api/checkout/v2/checkoutForm/Merchant/912883645917434" id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm">
    <input name="item_name_1" type="hidden" value="cherry tree race"/>
    <input name="item_description_1" type="hidden" value="race for the hard core."/>
    <input name="item_quantity_1" type="hidden" value="1"/>
    <input name="item_price_1" type="hidden" value="20.0"/>
    <input name="item_currency_1" type="hidden" value="USD"/>
    <input name="_charset_" type="hidden" value="utf-8"/>
    <input alt="" src="https://checkout.google.com/buttons/buy.gif?merchant_id=912883645917434&amp;w=121&amp;h=44&amp;style=white&amp;variant=text&amp;loc=en_US" type="image"/>
</form>
-->


{%endblock%}
